/Set LastMsg changes the target viewed as being the most recent to send you a private message. This is the target used when pressing TAB and Shift-TAB.
This is mainly used from scripts that can receive messages from other channels than IRC (e.g. DCC CHAT).
*
/Set LastMsg =Zappo
*
will make Shift-TAB open the "=Zappo" window when pressed.